import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import * as flatpickr from 'flatpickr';
import { FlatpickrModule, FLATPICKR } from '../../../../../../assets/angularx-flatpickr';
import { CustomFormsModule } from 'ng2-validation';
import { AppPaginationModule } from '../../../../../widgets/pagination/pagination.module';
import { MultiSelectModule } from 'primeng/components/multiselect/multiselect';
import { FileUploadModule } from 'ng2-file-upload';

import { ReviewPageComponent } from '../../content/review-page/review-page.component';
import { ModalShareModule } from '../../modal/modal-share.module';
import { ReviewRoutingModule } from './review-routing.module';
import{ ReviewComponent } from './review.component'
export function flatpickrFactory() {
  return flatpickr;
}
@NgModule({
  imports: [
    CommonModule,
    ReviewRoutingModule,
    FormsModule,
    ModalShareModule,
    AppPaginationModule,
    MultiSelectModule,
    CustomFormsModule,
    FileUploadModule,
    FlatpickrModule.forRoot({
      provide: FLATPICKR,
      useFactory: flatpickrFactory
    })
  ],
  declarations: [
    ReviewComponent,  
    ReviewPageComponent,
  ],
  entryComponents: [
    ReviewPageComponent
  ]
})
export class ReviewModule { }
